//
//  NSString+UUID.h
//  ImageBrowserTest
//
//  Created by Marc Liyanage on 01.01.09.
//  Copyright 2009 Marc Liyanage <http://www.entropy.ch>. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@implementation NSString (UUID)

// Taken from http://www.cocoadev.com/index.pl?CFUUIDGetUUIDBytes
+ (NSString*)stringWithUUID {
   CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
   NSString* str = (NSString*)CFUUIDCreateString(kCFAllocatorDefault, uuid);
   CFRelease(uuid);
   return [str autorelease];
}

@end
